import service from "@/service/request";

interface TreeQuery {
  category?: 1 | 2; //课程类别：1公开课 2正课
  courseId?: number; //课程Id
  examStage?: "BASE" | "PROFESSION"; // 考试阶段：BASE 基础考试 PROFESSION 专业考试
  name?: string; // 	课程名称
  pageNum: string; // 当前记录起始索引
  pageSize: string; // 每页显示记录数
  scienceId: string; // 考试方向
}
/*课程目录*/
export function curriculum(params: TreeQuery) {
  return service({
    url: "/member/course/tree",
    method: "get",
    params,
  });
}

/*获取直播信息*/
export function liveInfo(courseLiveId: number) {
  return service({
    url: `/member/course/${courseLiveId}/liveSign`,
    method: "get",
  });
}
